import { createApp } from 'vue'
import { createPinia } from 'pinia'
import './assets/global.css'
import './assets/01.css'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate';
import ECharts from 'vue-echarts';
import * as echarts from 'echarts';

const app = createApp(App)


for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate);

app.component('e-charts', ECharts);
app.config.globalProperties.$echarts = echarts;
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
